<script setup lang="ts">
const props = defineProps({
  error: Object,
});
console.log(props.error);
const handleError = () => clearError({ redirect: "/" });
</script>
<template>
  <n-result
    class="h-full flex items-center flex-col justify-center"
    :status="`${error.statusCode}`"
    :title="error.message"
    description="服务器出错可能说明该雇更多程序员了"
  >
    <template #footer>
      <n-button @click="handleError">清除错误</n-button>
    </template>
  </n-result>
</template>
